package com.tanker.common;
/**
 * @comments
 * @author zg
 * @version 2013年10月11日
 */
public enum ErrorCode {
	//系统级
	SUCCESS("000000","success"),
	//输入校验
	FAILED("000001","操作失败！"),
	INPUT_ERROR("000002","输入错误"),
	SYS_ERROR("999999","系统异常"),
	TOKEN_INVALID("100001","没有登录或登录失效，请重新登录"),//。
	LOGIN_FAILED("200002","登录失败,用户名/密码不匹配"),
	RENTER_IDENTITY_NO("100002","身份认证没通过"),//
	RENTER_IDENTITY_NO_COMPLETE_HAS_CANCEL("100008","身份认证未完成"),//
	RENTER_IDENTITY_NO_COMPLETE("100009","身份认证未完成"),//
	RENT_CAR_DEPOSIT_NO_PAY("100003","租车押金没支付"),//
	RENT_CAR_DEPOSIT_BUCKLE("100004","租车押金暂扣不能下单"),//
	MOBILE_OR_OPENID_IS("100005","手机号或者openId已绑定"),//SesameAuth
	NEED_SESAME_AUTH("100006","需要跳出芝麻认证页面"),//
	SESAME_AUTH_LESS_650("100007","芝麻信用小于650"),//

	ID_CARD_NOT_BE_IDENTITY("100100","身份证不能识别"),
	ID_CARD_MOBILE_NOT_SAME("100101","身份证跟手机号主不一致"),
	DIC_LIC_NOT_BE_IDENTITY("100200","驾照不能识别"),//
	DIC_LIC_ID_CARD_NOT_SAME("100201","驾照跟身份证不符合"),//
	DIC_LIC_OVER_DUE("100202","驾照已过期"),//
	RENTER_DIVLIC_MAIN_SECOND_NO("100202","驾照认证上传正副页不符"),//

	//车辆的
	CAR_IS_NOT("110001","车辆不存在"),//
	CAR_IS_RESERVE_ORTHER("110001","该车已经被别人预定"),// other
	CAR_IS_UUNOPENED("110003", "车门锁不能打开"),

	//订单
	RESERVE_TRABS_IS_EXIST("120001","有预定中的订单"),//Reserve
	DOING_TRABS_IS_EXIST("120002","有进行中的订单"),//exist
	NO_PAY_TRABS_IS_EXIST("120003","有未支付的订单"),//exist
	TRANS_IS_NO_EXIST("120004","订单不存在"),//exist
	ORDER_OPENDOOR_ERROR("120005", "订单暂时不可开始"),
	RESERVE_TRANS_IS_NO_EXIST("120005","订单不是预订中不能取消"),//
	TRANS_CANCEL_IS_LIMIT("120006","订单取消次数超限"),//Cancel
	TRANS_IS_NOT_RESERVE_NOT_DOING("120007","订单不是进行中或者预定中不能开门"),//Cancel
	TRANS_IS_NOT_DOING("120009","订单不是进行中不能操作"),//Cancel
	TRANS_IS_NOT_RETURN("120010","订单没还车不能操作"),//Cancel
	TRANS_IS_PAY("120011","订单已经支付"),//Cancel
	TRANS_IS_PAY_CLICK("120012","订单已经点支付"),//Cancel
	TRANS_IS_PAY_ZERO("120013","订单支付金额为0"),//
	TRANS_ILLEGAL_IS_NOT_DO("120014","有违章订单不能下单"),//
	OPENDOOR_DISTANCE_IS_YUAN("120015","距离超过500米不能开门"),//
	FLASH_DISTANCE_IS_YUAN("120016","距离超过500米不能双闪"),//
	TRANS_ACCIDENT_IS_NOT_DO("120017","有出险订单不能下单"),//Accident
	TRANS_ILLEGAL_IS_NOT("120018","违章订单不存在"),//
	TRANS_ILLEGAL_IS_PAY("120019","违章订单已支付"),//

	//还车
	RETURN_CONDITION("13000", "还车条件不满足"),
	RETURN_CAR_IS_NOT_RAIL("13001", "请在指定范围内还车"),
	LON_OR_LAT_NOT_USE("13002", "不可用的经纬度"),
	RETURN_CAR_UPLOAD_IMG_ERROR("13003", "还车时上传图片出错"),
	RETURN_CAR_IS_NOT_FIXCAMPUS("130004", "请在指定园区还车"),
	RETURN_CAR_IS_NOT_REPORT_ADDRESS("130005", "指定车场不能上报地址"),
	//上传
	FILE_INS_NOT("19001", "请选择上传图片"),
	UPLOAD_IMG_ERROR("19002", "上传图片出错"),
	//depositAmt
	DEPOSIT_IS_EXIST("19003", "押金已支付"),
	//押金
	DEPOSIT_IS_NOT_DEPOSIT_IS_EXIST("20001", "押金不存在"),
	RENTER_ID_CARD_IN_BLACK_LIST("190003", "您的账号无法通过系统审核"),

	//发短信
	SENDER_SMS_FAILED("800000","发送短信失败"),
	MOBILE_CODE_HIGH_FREQUENCY_60("800800","验证码超出60秒限制"),
	MOBILE_CODE_HIGH_FREQUENCY("200017","超出操作频率限制"),
	MOBILE_CODE_QUANTITY_LIMIT("200018","验证码获取次数过多,请明日再试"),
	THIS_EVAL_IS_THE("200019","用户评价过"),
	//illegal_orders
	THIS_IS_UNPAY_ILLEGAL_ORDER("200020","有未支付的违规订单"),

	//验证码
	SMS_CODE_ERROR("300003","短信验证码错误 "),
	SMS_CODE_TIMEOUT("300002","短信验证码超时，请重新获取。"),
	//车机
	CAR_ENGINE_IS_NO("300001","车机不存在"),
	CAR_ENGINE_IS_BUND("300002","车机已绑定"),
	CAR_IS_BUND_TYPE_T_ENGINE("300003","该车已经绑定了T类型车机"),

	//
	ACT_IS_COPON("400001","已经领过券"),
	SOUSER_IS_NOT_NULL("400002","来源不能为空"),
	COUPON_NOT_QUALIFY("400003", "不符合领券资格"),

	COUPON_CODE_INVALID("400011", "无效券码, 请核对后重试"),
	COUPON_CODE_EXCHANGED("400012", "该券码已兑换"),
	COUPON_CODE_EXPIRE("400013", "该券码已过期"),
	COUPON_CODE_EXCHANGED_FOR_MEMBER("400014", "您已兑换过同一类型优惠券"),
	COUPON_CODE_BATCH_IS_NO("400015", "批次号不存在"),
	//COUPON_CODE_BATCH_IS_CHANGE("400015", "已兑换过"),

	//分享
	SHARE_NEED_VERIFY("410001", "需要输入手机号验证"),
	SHARE_IS_GAIN("410002", "红包已经领取"),
	SHARE_OVER_FIVE("410003", "红包超过领取上限"),

	//邀请
	INVITE_NOT_QUALIFY("420001", "不符合活动资格"),

	MEMBER_INFO_NULL("420800", "未设置提现信息"),
	MEMBER_INFO_NAME_DIFF("420801", "需与登录的账号使用者姓名一致"),
	MEMBER_INFO_IDNO_DIFF("420802", "需与登录的账号使用者身份证号一致"),
	MEMBER_INFO_LESS30("420803", "个人信息提交后30天内不得修改"),
	MEMBER_INFO_CHECK_FAIL("420804", "密码校验失败"),
	MEMBER_INFO_GETCASH_FAULT("420805", "金额不符"),
	TIST_ACT_1M_FAULT("420806", "操作频繁"),
	TIST_ACT_IS_NOT_RES("420807", "没报名不能预约"),
	TIST_AUTH_NOT_PASS("420808", "手机号和身份证不一致"),

	SPRING_TRANS_IS_NO("400016", "五一订单不存在"),
	SPRING_TRANS_IS("400017", "五一订单已存在"),
	SPRING_TRANS_IS_RENT_END("400018", "五一套餐已经抢完"),
	VERSION_IS_ERROR("999927","app来源不对"),

	TRANS_MODIFICATION_ORDER_STATUS_ABATEMENTV45("999926","很抱歉，该订单暂时无法修改，请15分钟后再试"), ;
	private String code;
	private String text;

	private ErrorCode(String code, String text) {
        this.code = code;
        this.text = text;
    }

	public String getCode() {
		return code;
	}

	private void setCode(String code) {
		this.code = code;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {  //throws CloneNotSupportedException

		this.text = text;
//		System.out.println(this.getClass().getName());
//		System.out.println(this.clone());
//		return ErrorCode.SUCCESS;
	}

	/*public Object setText(String text) {  //throws CloneNotSupportedException

		this.text = text;
//		System.out.println(this.getClass().getName());
//		System.out.println(this.clone());
		return ErrorCode.SUCCESS;
	} */


}
